﻿import request from '/@/utils/request';
enum Api {
  AddBusAddress = '/api/busAddress/add',
  DeleteBusAddress = '/api/busAddress/delete',
  UpdateBusAddress = '/api/busAddress/update',
  PageBusAddress = '/api/busAddress/page',
  IsEnabled = '/api/busAddress/IsEnabled',
  GetSysUserDropdown = '/api/busAddress/SysUserDropdown',
}

// 增加收货信息管理
export const addBusAddress = (params?: any) =>
	request({
		url: Api.AddBusAddress,
		method: 'post',
		data: params,
	});

// 删除收货信息管理
export const deleteBusAddress = (params?: any) => 
	request({
			url: Api.DeleteBusAddress,
			method: 'post',
			data: params,
		});
// 
export const setEnable = (params?: any) => 
	request({
			url: Api.IsEnabled,
			method: 'post',
			data: params,
		});		

// 编辑收货信息管理
export const updateBusAddress = (params?: any) => 
	request({
			url: Api.UpdateBusAddress,
			method: 'post',
			data: params,
		});

// 分页查询收货信息管理
export const pageBusAddress = (params?: any) => 
	request({
			url: Api.PageBusAddress,
			method: 'post',
			data: params,
		});
export const getSysUserDropdown = () =>
	request({
	url: Api.GetSysUserDropdown,
	method: 'get'
	});

